package com.example.midushop.service.brand.impl;

import com.example.midushop.entity.brand.Brand;
import com.example.midushop.mapper.brand.BrandMapper;
import com.example.midushop.service.brand.BrandService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;
/**
 * 品牌信息服务接口实现类
 * */
@Service
public class BrandServiceImpl implements BrandService {
    @Autowired
    BrandMapper brandMapper;
    @Override
    public List<Brand> findAllBrand(long brand_id,String brandName) {
        return brandMapper.findAllBrand(brand_id,brandName);
    }

    @Override
    public int addBrand(String brandName, String image, String initial, int sort, Date create_time, Date update_time) {
        return brandMapper.addBrand(brandName,image,initial,sort,create_time,update_time);
    }
}
